
def uuid():
    import uuid
    return str(uuid.uuid4())

def class_keys(classz):
    full_attrs = vars(classz)
    attrs = {k: v for k, v in full_attrs.items() if not k.startswith('__')}
    return attrs


if __name__ == '__main__':
    class TestKeys:
        FirstKey = 1
        SecondKey = 2
        ThirdKey = 3

    attrs = vars(TestKeys)
    print('------- full keys -------')
    for k, v in attrs.items():
        print(k, v)

    print('------ only custom keys ------')
    for k, v in attrs.items():
        if not k.startswith('__'):
            print(k, v)

    print('------ class keys ------')

    print(class_keys(TestKeys))


# ------- full keys -------
# __module__ __main__
# FirstKey 1
# SecondKey 2
# ThirdKey 3
# __dict__ <attribute '__dict__' of 'TestKeys' objects>
# __weakref__ <attribute '__weakref__' of 'TestKeys' objects>
# __doc__ None

# ------ only custom keys ------
# FirstKey 1
# SecondKey 2
# ThirdKey 3

# ------ class keys ------
# {'FirstKey': 1, 'SecondKey': 2, 'ThirdKey': 3}